#pragma once

#define HOST_NAME  "bemfa"
#define MAGIC_NUMBER 0xAA

#define TCP_SERVER_ADDR "bemfa.com"
//服务器端口//TCP创客云端口8344//TCP设备云端口8340
#define TCP_SERVER_PORT "8344"
//用户私钥，可在控制台获取,修改为自己的UID
String UID = "c124bafd03ba4909b1f7794c3e38af32";
//主题名字，可在控制台新建
String TOPIC = "mytemp1";
//设置上传速率2s（1s<=upDataTime<=60s）
#define upDataTime 2*1000
//最大字节数
#define MAX_PACKETSIZE 512

// Uncomment the type of sensor in use:
#define DHTTYPE           DHT11     // DHT 11
// #define DHTTYPE           DHT22     // DHT 22 (AM2302)
//#define DHTTYPE           DHT21     // DHT 21 (AM2301)


#define I2C_SDA                 (25)
#define I2C_SCL                 (26)
#define I2C1_SDA                (21)
#define I2C1_SCL                (22)
#define DS18B20_PIN             (21)

#define DHT1x_PIN               (16)
#define BAT_ADC                 (33)
#define SALT_PIN                (34)
#define SOIL_PIN                (32)
#define BOOT_PIN                (0)
#define POWER_CTRL              (4)
#define USER_BUTTON             (35)
#define DS18B20_PIN             (21)                  //18b20 data pin

#define MOTOR_PIN               (19)
#define RGB_PIN                 (18)

#define RADIO_RESET_PIN         (23)
#define RADIO_DI0_PIN           (14)
#define RADIO_DI1_PIN           (13)
#define RADIO_DI2_PIN           (15)
#define RADIO_CS_PIN            (18)
#define RADIO_MISO_PIN          (19)
#define RADIO_MOSI_PIN          (27)
#define RADIO_SCLK_PIN          (5)


#define OB_BH1750_ADDRESS       (0x23)
#define OB_BME280_ADDRESS       (0x77)
#define OB_SHT3X_ADDRESS        (0x44)
